package entity;

import lombok.Builder;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@Builder
public class User {

    private Long id;
    private String username;

    private String password;

    private String avatar;
    private String nickname;

    private String phone;

    private String email;
    private Long userLevelId;


    private LocalDateTime createTime;

    private LocalDateTime updateTime;


    private LocalDateTime lastLoginTime;

    //    状态：0禁用1启用
    private int status;

    //    微信openid
    private String wechatOpenid;

    //    推广用户数量
    private Integer shareNum;

    //    推广订单数量
    private Integer shareOrderNum;


    //    订单金额
    private BigDecimal orderPrice;

    //    账户佣金
    private BigDecimal commission;

    //    已提现金额
    private BigDecimal cashOutPrice;

    //    已提现次数
    private Integer cashOutTime;

    //    未提现金额
    private BigDecimal noCashOutPrice;

    //    一级推广人ID
    private Long p1;

    //    二级推广人ID
    private Long p2;
}
